package com.hertz.appr.pojo.db;



/**
 * Robot entity. @author MyEclipse Persistence Tools
 */

public class Robot  implements java.io.Serializable {


    // Fields    

     /**
	 * 
	 */
	private static final long serialVersionUID = 8991337470134398498L;
	private Integer id;
     private String uid;
     private String nick;
     private String provider;
     private String accessToken;
     private String accessSecret;
     private Short flag;
     private Long createTime;
     public final static Short type_r = 0;
     public final static Short type_w = 1;
     public final static Short type_rw = 2;

    // Constructors

    /** default constructor */
    public Robot() {
    }

    
    /** full constructor */
    public Robot(Integer id, String uid, String nick, String provider, String accessToken, String accessSecret, Short flag, Long createTime) {
        this.id = id;
        this.uid = uid;
        this.nick = nick;
        this.provider = provider;
        this.accessToken = accessToken;
        this.accessSecret = accessSecret;
        this.flag = flag;
        this.createTime = createTime;
    }

   
    // Property accessors

    public Integer getId() {
        return this.id;
    }
    
    public void setId(Integer id) {
        this.id = id;
    }

    public String getUid() {
        return this.uid;
    }
    
    public void setUid(String uid) {
        this.uid = uid;
    }

    public String getNick() {
        return this.nick;
    }
    
    public void setNick(String nick) {
        this.nick = nick;
    }

    public String getProvider() {
        return this.provider;
    }
    
    public void setProvider(String provider) {
        this.provider = provider;
    }

    public String getAccessToken() {
        return this.accessToken;
    }
    
    public void setAccessToken(String accessToken) {
        this.accessToken = accessToken;
    }

    public String getAccessSecret() {
        return this.accessSecret;
    }
    
    public void setAccessSecret(String accessSecret) {
        this.accessSecret = accessSecret;
    }

    public Short getFlag() {
        return this.flag;
    }
    
    public void setFlag(Short flag) {
        this.flag = flag;
    }

    public Long getCreateTime() {
        return this.createTime;
    }
    
    public void setCreateTime(Long createTime) {
        this.createTime = createTime;
    }
   
    @Override
	public String toString(){
		return "Robot{" +
		" provider=" + String.format("%1$4S", provider) +
		", uid=" + String.format("%1$-15S", uid) +
        ", nick=" + String.format("%1$-15S", nick) +
        ", flag=" + String.format("%1$-2S", this.flag) +
        '}';
	}







}